package com.punch.common.vo.course.classes;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * CoursePageVO-教室列表信息 展示vo
 *
 * @author xiaol
 * @version 1.0.0
 * @since 2020/7/21
 */
@Data
public class ClassPageVO implements Serializable {

    /**
     * 班级主键id
     */
    @ApiModelProperty(name = "classId", notes = "班级主键id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long classId;


    /**
     * 来源
     */
    @ApiModelProperty(name = "type", notes = "来源 0-机构 1-学校")
    private Integer type;
    /**
     * 班级名称
     */
    @ApiModelProperty(name = "className", notes = "班级名称")
    private String className;


    @ApiModelProperty(name = "courseWeek", notes = "上课周期——星期几")
    @JsonIgnore
    private String courseWeek;

    @ApiModelProperty(name = "classTime", notes = "上课时间——几点到几点")
    @JsonIgnore
    private String classTime;

    @ApiModelProperty(name = "courseTime", notes = "上课时间,返回前端显示")
    private String courseTime;

    @ApiModelProperty(name = "schoolId", notes = "学校Id")
    @JsonSerialize(using = ToStringSerializer.class)
    private String schoolId;

    @ApiModelProperty(name = "schoolName", notes = "学校名称")
    private String schoolName;

    /**
     * 上课教室名称
     */
    @ApiModelProperty(name = "classRoomName", notes = "上课教室名称")
    private String classRoomName;


    /**
     * 最少上课人数
     */
    @ApiModelProperty(name = "stuNoMin", notes = "最少上课人数")
    private Integer stuNoMin;
    /**
     * 最多上课人数
     */
    @ApiModelProperty(name = "stuNoMax", notes = "最多上课人数")
    private Integer stuNoMax;


    /**
     * {@link com.punch.common.enums.course.ClassStatusEnum}
     */
    @ApiModelProperty(name = "classStatus", notes = "班级状态： 0-待申请 1-待发布 2-待报名 3-报名中 4-已开班 5-已完成 6-拒绝")
    private Integer classStatus;


    /**
     * 课时数
     */
    private Integer courseHourCount;

    /**
     * 已完成课时数
     */
    private Integer courseFinishCount;

}
